/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Aug 13, 2009 12:54:04 AM $
 *
 * Author: Eric Yang
 * Date  : Aug 13, 2009 12:54:04 AM
 *
 */
package com.gooex.web.action.organization.authority;

import com.gooex.domain.organization.Authority;
import com.gooex.web.action.BaseProtectedAction;


/**
 * @author Eric Yang
 * @version 1.0
 */
public class RemoveAuthority extends BaseProtectedAction {

	private Authority authority;

	public String execute() throws Exception {
		try {
			authorityManager.removeAuthority(authority);
		} catch (Exception e) {
			addActionError(e.getMessage());
			return ERROR;
		}
		return SUCCESS;
	}

	public Authority getAuthority() {
		return authority;
	}

	public void setAuthority(Authority authority) {
		this.authority = authority;
	}
}
